const koa = require('koa');
const mount = require('mount');
const static = require('static');

const app =new koa();

// 中间件
app.use(
    mount('/',async (ctx) => {
        ctx.body = fs.readFileSync(__dirname + '/source/index.htm','utf-8')
    })
);

app.listen(3000);